package com.lucy.property.module.park.checkpoint;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 道闸实体类
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "check_point")
@ApiModel(value = "道闸")
public class CheckPoint extends BaseEntity implements Serializable {

    @ApiModelProperty("道闸名称")
    @Column(name = "check_point_name")
    String checkPointName;

    @ApiModelProperty("停车场ID")
    @Column(name = "parking_lot_id")
    String parkingLotId;

    @ApiModelProperty("停车场名称")
    @Column(name = "parking_lot_name")
    String parkingLotName;

    /**
     * 1 正常 0 关闭
     */
    @ApiModelProperty("状态")
    @Column(name = "status")
    Integer status;
}
